package com.day0916.task;

import java.io.IOException;

//    主入口
public class TextMain {
    public static void main(String[] args) throws IOException {
        Method_management mbm = new Method_management();
        LoginManager loginManager = new LoginManager();

        int choose = 0;
        mbm.initDish();
        System.out.println("欢迎使用吃货联盟系统！");
        boolean bool = loginManager.register();
        do{

            if (bool){
                mbm.printMenu();
                choose = mbm.chooseMenu();
            }
            else {
                choose = 100;
            }
        }while (choose == 0);
    }
}
